package m2.link;

import m2.component.iface.ComponentInterfacePortFourni;
import m2.component.iface.ComponentInterfacePortRequis;
import m2.configuration.iface.ConfigurationInterfacePortFourni;
import m2.configuration.iface.ConfigurationInterfacePortRequis;

public class Binding {

	ConfigurationInterfacePortFourni portf1;;
	ComponentInterfacePortFourni portf2;
	
	ConfigurationInterfacePortRequis portr1;
	ComponentInterfacePortRequis portr2;
	
	public Binding(ConfigurationInterfacePortFourni portf1,
			ComponentInterfacePortFourni portf2) {
		super();
		this.portf1 = portf1;
		this.portf2 = portf2;
	}

	public Binding(ConfigurationInterfacePortRequis portr1,
			ComponentInterfacePortRequis portr2) {
		super();
		this.portr1 = portr1;
		this.portr2 = portr2;
	}

	public ConfigurationInterfacePortFourni getConfigurationPortFourni() {
		return portf1;
	}


	public ComponentInterfacePortFourni getComponentPortFourni() {
		System.out.println(getClass().getName());
		return portf2;
	}


	public ConfigurationInterfacePortRequis getConfigurationPortRequis() {
		return portr1;
	}

	public ComponentInterfacePortRequis getComponentPortRequis() {
		return portr2;
	}
	
	
	
}
